<%
var reg=new RegExp("\\n","g");

var projectList = [];
_.each(list, function(item, key){
    if (!projectList[item.project]) {
        projectList[item.project] = [];
    }
    projectList[item.project].push(item);
});
_.each(projectList, function(project, projectId){
var count = 1;
    _.each(project, function(item, key){
        if (count == 1) {
%>
<h2><%= item.project_name %></h2>
<%
        }
%>
<p style="<%= item.online_time == '0000-00-00 00:00:00' ? '' : 'color: green;' %>font-weight: bold;font-size: 16px;"><%= count %>. <%= item.name %><%= item.critical == 3 ? '(P0)' : (item.critical == 2 ? '(P1)' : '(P2)' ) %></p>
<p><% var description = item.description.replace(reg, "<br>"); %><%= description %></p>
<p>负责人：<%= item.developer %></p>
<p <%= item.online_time == '0000-00-00 00:00:00' ? '' : 'style="color: red"' %>>时间：<%= item.online_time == '0000-00-00 00:00:00' ? ('预计' + timeFormat(item.wish_time, 'yyyy年MM月dd日')) : (timeFormat(item.wish_time, 'yyyy年MM月dd日') + '已') %>上线</p>
<br>
<br>
<%
        count++;
    });
});
%>